{% extends "base.html" %}

{% block script %}
   


{% endblock %}

{% block action %}
   {% if user %}
      <button onclick="window.location.href='/edit?article_id={{article_id}}'">Edit</button>
      <button onclick="window.location.href='/delete?article_id={{article_id}}'">Delete</button>
   {% else %}
      <button disabled="disabled">Edit</button>
      <button disabled="disabled">Delete</button>
   {% endif %}
   
{% endblock %}

{% block body %}
  {{ content }}
{% endblock %}

